package com.swd.order.controller;

import com.swd.order.vo.Ret;
import com.swd.order.vo.Rets;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("banner")
public class BannerController {

    @Value("${banner}")
    private List<String> bannerList;

    @GetMapping("all")
    public Ret all(){
        return Rets.success(bannerList);
    }
}
